<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>noticedetail</title>
</head>
<link rel="stylesheet" href="../css/aui.css">
<link rel="stylesheet" href="../css/api.css">
<link rel="stylesheet" href="../css/font-awesome.min.css">
<link rel="stylesheet" href="../css/aui-iconfont.ttf">
<body>
        <header id="head" class="aui-bar aui-bar-nav" style="background-color:white;position:fixed;z-index:2;height:2.3rem!important;padding-top:0.8rem;">
                <a class="aui-pull-left aui-btn" onclick="api.closeWin()">
                    <i style="color:black" class="fa fa-chevron-left" aria-hidden="true"></i>
                </a>
                <div class="aui-title" style="color:black">公告详情</div>
                <a class="aui-pull-right">
                    <span>
                        <img src="../image/321AC.png" style="padding-top:0.25rem;">
                    </span>
                </a>
         </header>
         <div style="width:100%;margin-top:4rem;height:1rem;text-align:center">
                <div style="font-size:0.65rem">
                    {{notice.issuer}}-{{notice.createtime}}
                </div>
            </div>
            <div style="font-family: 'Microsoft Yahei', Arial ;margin-top:0.3rem;font-size:0.75rem;width:90%;display:block;word-break: break-all;word-wrap: break-word;margin: 1rem auto;">     
                {{{notice.content}}}
            </div>
            
</body>
<script type="text/javascript" src="../script/vue1.0.js"></script>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/util.js"></script>
<script>
    apiready = function(){
        vm=new Vue({
            el:"body",
            data:{
                notice:null
            },
            methods:{                 
            },
            created:function(){
                var index=api.pageParam['index'];
                console.log(index);
                var me=this;
                var not = api.getPrefs({
                            key: 'notices',
                            sync: true
                    });
               var notices=JSON.parse(not);
               console.log(notices);
               me.notice=notices[index];
            //    console.log(notices[0])
            }
        });
    }
        
 
</script>
</html>